#include "process.h"

void PrnocessOn()//函数的定义
{
    char bar[NUM];
    int cnt =0;
    memset(bar,'\0',sizeof(bar));

    //逆时针旋转
    const char *lable ="|\\-/";

    while(cnt<=100)
    {
        printf("\033[42;34m[%-100s][%-3d%%][%c]\033[0m\r",bar,cnt,lable[cnt%4]);
        fflush(stdout);
        bar[cnt++] = STYLE;
        usleep(50000);
    }
    printf("\n");
}
